package com.ywgt.service;

import org.apache.http.HttpResponse;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface AliossService {


    /**
     * 上传文件
     * @param file
     * @return
     */
    String upload(MultipartFile file);

    /**
     * 下载文件
     * @param filename
     * @throws IOException
     */
    void download(String filename, HttpServletResponse response)throws IOException;

    /**
     * 列举文件
     */
    void listFile();

    /**
     * 删除文件
     * @param filename
     */
    void deleteFile(String filename);
}
